package zzu.patterns.creational.abstractfactory;

public class FactoryProduce {
    public static AbstractFactory getBean(String beanName) {
        if ("shape".equalsIgnoreCase(beanName)) {
            return new ShapeFactory();
        } else if ("color".equalsIgnoreCase(beanName)) {
            return new ColorFactory();
        }
        return null;
    }
}
